package parser;

import java.util.Arrays;
import java.util.List;

public class NullParser extends ParserPipeline {
	
	@Override
	public ParserAnnotation make(String document) {
		return new NullAnnotation(document);
	}
	
	private class NullAnnotation extends ParserAnnotation {

		public NullAnnotation(String doc) {
			super(doc);
		}

		@Override
		public List<String> getSentences() {
			return Arrays.asList(document);
		}

		@Override
		public int getNbrSentences() {
			return 1;
		}

		@Override
		public List<String> getTokens(int sent) {
			return Arrays.asList(document.split("\\s+"));
		}

		@Override
		public List<String> getPOS(int sent) {
			return Arrays.asList(document.split("\\s+"));
		}

		@Override
		public List<String> getLemmas(int sent) {
			return Arrays.asList(document.split("\\s+"));
		}

		@Override
		protected void parseImplementation() {
		}

		@Override
		public List<Integer> getTokenIndexes(int sent) {
			return null;
		}
	}
}
